import request from '@/utils/request'

// 查询学科表列表
export function listBase(query) {
    return request({
        url: '/basic/base/list',
        method: 'get',
        params: query
    })
}

// 查询学科表详细
export function getBase(id) {
    return request({
        url: '/basic/base/' + id,
        method: 'get'
    })
}

// 新增学科表
export function addBase(data) {
    return request({
        url: '/basic/base',
        method: 'post',
        data: data
    })
}

// 修改学科表
export function updateBase(data) {
    return request({
        url: '/basic/base',
        method: 'put',
        data: data
    })
}

// 删除学科表
export function delBase(id) {
    return request({
        url: '/basic/base/' + id,
        method: 'delete'
    })
}
